// 游戏内动画管理

let uiAnimate = function() {
    let that = {};

    // 退出时的缩小动画
    that.animateAndDestroy = function (node) {
        var fadeOut = cc.fadeOut(0.2);
        var scaleTo = cc.scaleTo(0.2, 0);
        var callFunc = cc.callFunc(()=>{
            if (node) {
                node.destroy();
            }
        });
        node.runAction(cc.sequence(cc.spawn(fadeOut, scaleTo), callFunc));
    };














    

    return that;
};
export default uiAnimate;